package com.wiretap.action;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.ServletResponseAware;
import org.apache.struts2.interceptor.SessionAware;

import com.opensymphony.xwork2.ActionSupport;

public class WiretapActionSupport extends ActionSupport implements SessionAware, ServletRequestAware, ServletResponseAware {

	/**
	 *序列號 
	 */
	private static final long serialVersionUID = 7346958706279798803L;
	protected static final String CONTENT_TYPE = "text/html; charset=utf-8";
	// 請求
	protected HttpServletRequest request;
	// 响应
	protected HttpServletResponse response;
	// 会话
	protected Map<String, Object> session;
	

	/**
	 * @return the session
	 */
	public Map<String, Object> getSession() {
		return session;
	}

	public void setSession(Map<String, Object> session) {
		this.session = session;
	}

	@Override
	public void setServletRequest(HttpServletRequest request) {
		this.request = request;
	}

	@Override
	public void setServletResponse(HttpServletResponse response) {
		this.response = response;
	}

	public HttpServletRequest getRequest() {
		return request;
	}

	public HttpServletResponse getResponse() {
		return response;
	}
}
